package com.mysql.opt.controller;

import com.mysql.opt.entity.User;
import com.mysql.opt.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.*;

@RestController
public class UserController {


    @Resource
    private UserService userService;

    @GetMapping("/user/list")
    public List<User> getUserList() {
        return userService.getUserList();
    }
}
